
/**
 * 获取地址栏get参数
 * @param {string} key 
 * @returns string
 */
function getParams(key){
      let url = decodeURI(location.href)
      // console.log(url);
      let arr = url.split("?")[1].split("&");
      console.log(arr);
      for(let i in arr){
        let temp = arr[i].split("=");
            if(key === temp[0]) return temp[1]
        }
    }